package com.iris.live.services.services.impl;

import com.iris.live.services.data.models.CustomCarConfigureModel;
import com.iris.live.services.data.repositories.ICustomCarConfigureJpaRepository;
import com.iris.live.services.data.repositories.ICustomCarConfigureRepository;
import com.iris.live.services.services.ICustomCarConfigureService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * y
 */
@Service
public class CustomCarConfigureServiceImpl implements ICustomCarConfigureService{

    @Autowired
    private ICustomCarConfigureRepository customCarConfigureRepository;

    @Autowired
    private ICustomCarConfigureJpaRepository iCustomCarConfigureJpaRepository;


    @Override
    public List<Map> findByStoreId(String storeId, Integer status, String permit){
        return customCarConfigureRepository.findByStoreId(storeId, status,permit);
    }

    @Override
    public void save(CustomCarConfigureModel model) {
        iCustomCarConfigureJpaRepository.save(model);
    }


}
